-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: pool.gno #403
refactor: pool.gno #403
Conversation
notJoon
commented
Nov 28, 2024
•
edited
Loading
edited
- mainly for the Swap function
- add test for validating entry functions
You can extract repeated logic into a function.
Can you also try to break down the |
I agree with integrating panic condition checks like 1 and 2 into a single function. However, it seems difficult to integrate them immediately since each function currently outputs different error messages. We plan to improve how we manage error messages and error codes, and I think it would be better to handle this integration when the error messages are reorganized at that time. Proposed Idea: https://www.notion.so/Contract-Refactoring-14317eb23ada80c4bdd6c1ca7b2349bd?pvs=4#15017eb23ada802abf80d47c9e90eea7
While the line calling the Regarding this, I haven't made many modifications to the entry functions except for the However, as you mentioned, the And for the test, don't worry
The logic for checking if Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolve onlyhide'd comment about test case, other than that LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|